package com.glsc.ngateway.oaflow;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;

@EntityScan(basePackages = {"com.glsc.ngateway.common.base.domain"})
@ComponentScan(basePackages = {"com.glsc.ngateway.oaflow", "com.glsc.ngateway.common.base", "com.glsc.ngateway.common.xir",
        "com.glsc.ngateway.common.api.common", "com.glsc.ngateway.common.api.ldap", "com.glsc.ngateway.common.api.oaflow",
        "com.glsc.ngateway.common.api.wordconver","com.glsc.ngateway.common.api.shortmsg"
})
@EnableFeignClients(
        basePackageClasses = {
                com.glsc.ngateway.common.api.wordconver.feign.IFeignWordconverService.class,
                com.glsc.ngateway.common.api.ldap.feign.IFeignLdapService.class,
                com.glsc.ngateway.common.api.shortmsg.feign.IFeignShortmsgService.class
        })
@SpringBootApplication
@EnableScheduling //开启对定时任务的支持
public class OaflowApplication {

    public static void main(String[] args) {
        SpringApplication.run(OaflowApplication.class, args);
    }


}
